package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdFoodSkuEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdFoodSkuCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdFoodSkuUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdFoodSkuSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdFoodSkuOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdFoodSkuResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdFoodSkuRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdFoodSkuConverter;
import com.lion.ball.modules.orderfood.service.def.OfdFoodSkuService;
import com.lion.ball.modules.orderfood.web.api.OfdFoodSkuApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 食品SKU 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/food/sku")
public class OfdFoodSkuController implements OfdFoodSkuApi, BaseCrudController<
        OfdFoodSkuEntity,
        OfdFoodSkuCreateParam,
        OfdFoodSkuUpdateParam,
        OfdFoodSkuSearchParam,
        OfdFoodSkuOrderParam,
        OfdFoodSkuResult,
        OfdFoodSkuRepository,
        OfdFoodSkuConverter,
        OfdFoodSkuService
        > {

    @Autowired
    OfdFoodSkuService ofdFoodSkuService;

    @Override
    public OfdFoodSkuService getService() {
        return ofdFoodSkuService;
    }
}